//
//  GameModel.m
//  EasyToo
//
//  Created by linshengqin on 13-9-8.
//
//

#import "GameModel.h"
static GameModel *game_model = nil;
@implementation GameModel
+(GameModel *)shareData
{
    if(game_model == nil)
    {
        game_model = [[GameModel alloc]init];
    }
    
    return game_model ;
}


- (id)init
{
    self = [super init];
    if (self) {
        _gameArray = [[NSMutableArray alloc] init];
        _gameIdArray = [[NSMutableArray alloc] init];
        _priceArray = [[NSMutableArray alloc] init];
        _gameName = [[NSMutableString alloc]init];
        _price   = [[NSMutableString alloc]init];
        _account = [[NSMutableString alloc]init];
        _gameId = [[NSMutableString alloc]init];
        _payType = 0;
        
    }
    return self;
}
- (void)dealloc
{
    NSLog(@"&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
    [_gameArray release],_gameArray = nil;
    [_gameIdArray release],_gameIdArray = nil;
    [_priceArray release],_priceArray = nil;
    [_gameName release ],_gameName = nil;
    [_price release],_price = nil;
    [_account release],_account = nil;
    [_gameId release],_gameId = nil;
    [game_model release];
    [super dealloc];
}
@end
